home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Technology Seed / ADC Seed CD - June 1999.toast / ColorSync / ColorSync 2.6 Mac SDK / Interfaces / CMScriptingPlugin.a < prev    next >
Encoding:
Text File  |  1999-04-12  |  3.5 KB  |  125 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        CMScriptingPlugin.a
  3. ;
  4. ;    Contains:    ColorSync Scripting Plugin API
  5. ;
  6. ;    Version:    Technology:    ColorSync 2.5
  7. ;                Release:    ColorSync 2.6 SDK for use with Universal Interfaces 3.1
  8. ;
  9. ;    Copyright:    © 1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__CMSCRIPTINGPLUGIN__') = 'UNDEFINED' THEN
  18. __CMSCRIPTINGPLUGIN__ SET 1
  19.  
  20.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  21.     include 'Files.a'
  22.     ENDIF
  23.     IF &TYPE('__CMAPPLICATION__') = 'UNDEFINED' THEN
  24.     include 'CMApplication.a'
  25.     ENDIF
  26.     IF &TYPE('__CODEFRAGMENTS__') = 'UNDEFINED' THEN
  27.     include 'CodeFragments.a'
  28.     ENDIF
  29.  
  30.  
  31.  
  32.  
  33.                                                             ; ColorSync Scripting AppleEvent Errors 
  34. cmspInvalidImageFile            EQU        -4220                ; Plugin cannot handle this image file type 
  35. cmspInvalidImageSpace            EQU        -4221                ; Plugin cannot create an image file of this colorspace 
  36. cmspInvalidProfileEmbed            EQU        -4222                ; Specific invalid profile errors 
  37. cmspInvalidProfileSource        EQU        -4223
  38. cmspInvalidProfileDest            EQU        -4224
  39. cmspInvalidProfileProof            EQU        -4225
  40. cmspInvalidProfileLink            EQU        -4226
  41.  
  42. ; *** embedFlags field  ***
  43. ;  reserved for future use: currently 0 
  44.  
  45. ; *** matchFlags field  ***
  46.  
  47. cmspFavorEmbeddedMask            EQU        $00000001            ; if bit 0 is 0 then use srcProf profile, if 1 then use profile embedded in image if present
  48.  
  49. ; *** scripting plugin entry points  ***
  50. ; *** CSScriptingLib entry points  ***
  51. ; *** CSScriptingLib API  ***
  52.  
  53. ;
  54. ; extern CMError CMValidImage(const FSSpec *spec)
  55. ;
  56.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  57.         IMPORT_CFM_FUNCTION CMValidImage
  58.     ENDIF
  59.  
  60. ;
  61. ; extern CMError CMGetImageSpace(const FSSpec *spec, OSType *space)
  62. ;
  63.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  64.         IMPORT_CFM_FUNCTION CMGetImageSpace
  65.     ENDIF
  66.  
  67. ;
  68. ; extern CMError CMEmbedImage(const FSSpec *specFrom, const FSSpec *specInto, Boolean repl, CMProfileRef embProf)
  69. ;
  70.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  71.         IMPORT_CFM_FUNCTION CMEmbedImage
  72.     ENDIF
  73.  
  74. ;
  75. ; extern CMError CMUnembedImage(const FSSpec *specFrom, const FSSpec *specInto, Boolean repl)
  76. ;
  77.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  78.         IMPORT_CFM_FUNCTION CMUnembedImage
  79.     ENDIF
  80.  
  81. ;
  82. ; extern CMError CMMatchImage(const FSSpec *specFrom, const FSSpec *specInto, Boolean repl, UInt32 qual, CMProfileRef srcProf, UInt32 srcIntent, CMProfileRef dstProf)
  83. ;
  84.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  85.         IMPORT_CFM_FUNCTION CMMatchImage
  86.     ENDIF
  87.  
  88. ;
  89. ; extern CMError CMProofImage(const FSSpec *specFrom, const FSSpec *specInto, Boolean repl, UInt32 qual, CMProfileRef srcProf, UInt32 srcIntent, CMProfileRef dstProf, CMProfileRef prfProf)
  90. ;
  91.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  92.         IMPORT_CFM_FUNCTION CMProofImage
  93.     ENDIF
  94.  
  95. ;
  96. ; extern CMError CMLinkImage(const FSSpec *specFrom, const FSSpec *specInto, Boolean repl, UInt32 qual, CMProfileRef lnkProf, UInt32 lnkIntent)
  97. ;
  98.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  99.         IMPORT_CFM_FUNCTION CMLinkImage
  100.     ENDIF
  101.  
  102. ;
  103. ; extern CMError CMCountImageProfiles(const FSSpec *spec, UInt32 *count)
  104. ;
  105.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  106.         IMPORT_CFM_FUNCTION CMCountImageProfiles
  107.     ENDIF
  108.  
  109. ;
  110. ; extern CMError CMGetIndImageProfile(const FSSpec *spec, UInt32 index, CMProfileRef *prof)
  111. ;
  112.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  113.         IMPORT_CFM_FUNCTION CMGetIndImageProfile
  114.     ENDIF
  115.  
  116. ;
  117. ; extern CMError CMSetIndImageProfile(const FSSpec *specFrom, const FSSpec *specInto, Boolean repl, UInt32 index, CMProfileRef prof)
  118. ;
  119.     IF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  120.         IMPORT_CFM_FUNCTION CMSetIndImageProfile
  121.     ENDIF
  122.  
  123.     ENDIF ; __CMSCRIPTINGPLUGIN__ 
  124.  
  125.